<template>
  <ant-modal
    modalWidth="800"
    modalHeight="550"
    :visible="open"
    :modal-title="formTitle"
    :adjust-size="false"
    @cancel="cancel"
  >
    <a-form-model
      ref="form"
      :model="form"
      :rules="rules"
      slot="content"
      layout="vertical"
    >
      <a-row :gutter="32">
        <a-col :span="24">
          <a-row :gutter="32">
            <a-col :span="24">
              <index-ping-fen
                ref="assessDeptDetialsPingFen"
                v-if="open"
                :assessDeptInfo="form"
              />
            </a-col>
          </a-row>
        </a-col>
      </a-row>
    </a-form-model>
    <template slot="footer" v-if="form.status == '2'">
      <a-button type="primary" @click="handleSaveDetailsPingFen">
        提交考核评分
      </a-button>
      <a-button @click="saveCaogao"> 保存草稿 </a-button>
      <a-button @click="handleSaveback" type="danger" icon="rollback">
        资料退回
      </a-button>
    </template>

    <template slot="footer" v-else>
      <a-button @click="cancel"> 关闭 </a-button>
    </template>
  </ant-modal>
</template>
<script>
import BizAssessToDeptAddForm from "./BizAssessToDeptForm";
export default {
  ...BizAssessToDeptAddForm,
};
</script>
